﻿@model Students.Models.StudentModel

@{
    ViewBag.Title = "Add a student...";
}

<h3>@ViewBag.Message</h3>

@using (Html.BeginForm()){
    <div>
        @Html.LabelFor(s => s.Name) <br>
        @Html.TextBoxFor(s => s.Name)
    </div>
    <div>
        @Html.LabelFor(s => s.Phone) <br>
        @Html.TextBoxFor(s => s.Phone)
    </div>
    <div>
        @Html.LabelFor(s => s.HomeTown) <br>
        @Html.TextBoxFor(s => s.HomeTown)
    </div>
    <div>
        <input type="submit" value="Add Student" />
    </div>
}

